package com.jnxx.task.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jnxx.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 *  评论
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment extends BaseDomain{

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date creatTime = new Date();
    /**
     * 任务id
     */
    private Integer taskId;
    /**
     * 员工id
     */
    private Integer staffId;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 评论人id
     */
    private Integer leadId;

    private OkrStaff staff;


    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public Integer getStaffId() {
        return staffId;
    }

    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getLeadId() {
        return leadId;
    }

    public void setLeadId(Integer leadId) {
        this.leadId = leadId;
    }

    @Override
    public String toString() {
        return "Comment{" +
        ", creatTime=" + creatTime +
        ", taskId=" + taskId +
        ", staffId=" + staffId +
        ", content=" + content +
        ", leadId=" + leadId +
        "}";
    }
}
